home *** CD-ROM | disk | FTP | other *** search
/ Suzy B Software 2 / Suzy B Software CD-ROM 2 (1994).iso / extras / programm / gemfsc20 / gemfsc20.lzh / GEMFBIND / VQCOLOR.S < prev    next >
Text File  |  1993-03-26  |  1KB  |  46 lines

  1. ;*========================================================================
  2. ;* VDIFAST Public Domain VDI bindings.
  3. ;*========================================================================
  4.  
  5.  
  6. ;*------------------------------------------------------------------------
  7. ;* Inquire color representation.
  8. ;*------------------------------------------------------------------------
  9.  
  10.           globl     _vq_color
  11. _vq_color:
  12. ;    .cargs    #8,handle.w,color.w,setflag.w,rgb.l
  13.  
  14. handle      =         8
  15. color      =         10
  16. setflag   =         12
  17. rgb       =         14
  18.  
  19.           link        a6,#-8                ;* Allocate intout[4].
  20.  
  21. ;          VContrl    #26,,,#2
  22.           move.w    handle(a6),-(sp)    ; contrl[6]
  23.           clr.l     -(sp)                ; contrl[5,4]
  24.           move.w    #2,-(sp)            ; contrl[3]
  25.           subq.l    #2,sp                ; contrl[2]
  26.           clr.w     -(sp)                ; contrl[1]
  27.           move.w    #26,-(sp)            ; contrl[0]
  28.  
  29.           subq.l    #4,sp                ;* -> ptsout
  30.           pea        -8(a6)                ;* -> intout
  31.           subq.l    #4,sp                ;* -> ptsin
  32.           pea        color(a6)            ;* -> intin
  33.           pea        16(sp)                ;* -> contrl
  34.  
  35.           move.l    sp,d1
  36.           jsr        vditrap
  37.  
  38.           move.l    rgb(a6),a0            ;* Return rgb array...
  39.           move.l    -6(a6),(a0)+        ;* rgb[0]=intout[1], rgb[1]=intout[2]
  40.           move.w    -2(a6),(a0)         ;* rgb[2]=intout[3]
  41.  
  42.           unlk        a6
  43.           rts
  44.  
  45.           end
  46.